//
//  KNTestViewController.swift
//  KNBaseModule_Example
//
//  Created by vbn on 2019/5/27.
//  Copyright © 2019 Mfk759853063. All rights reserved.
//

import UIKit
import KNBaseModule


class KNTestViewController: KNBaseViewController {
    
    

    override func viewDidLoad() {
        super.viewDidLoad()

        self.title = "首页"
        // Do any additional setup after loading the view.
        self.view.backgroundColor = UIColor.gray
        self.view.knMakeToast("hello world yes?", duration: 3) { (did) in
            if did {
                print("did")
            }
        }
        
        if KNHelper.knisIphoneFullScreen() {
            
        }
        
        self.rightButton = self.kn_navigationBar.addRightButton(withTarget: self, action: nil)
        self.rightButton.setTitle("压路", for: .normal)
        self.rightButton.setTitleColor(UIColor.blue, for: .normal)
        
//        KNDLog("\(KN_relativeWidth(baseWidth_3x: 40))")
//
//        KNDLog("\(KNIPhoneFullScreen)")
//
//        KNDLog("\(KNValidate.email("sb.calltome@gmail.com").isRight)")
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
